
// ---------------------------------------------------
// | File Name : main.c
// | Author    : chagn7z
// | Date      : 2014-6-16
// ---------------------------------------------------

#include "stm32f10x.h"
#include "user_cfg.h"

int main(void)
{
	
	init();

	LCD_LIGHT = 1;

	welcomeWnd();
	timeupdata();
	
	while (1)
	{
		if (!work_info.modify)
			rtc_read();

		if (wnd_info.cur_menu == WND_WELCOME)
		{
			if (work_info.time[1] % 10)
				welcomeWnd();
			
			timeupdata();			
		}

		relay_dt();

		key_deal();
	}
}









